package com.java.zhuiyun.api.teacher.service;

import com.java.zhuiyun.api.sys_dict.entity.SysDict;
import com.java.zhuiyun.api.teacher.entity.Teacher;
import com.java.zhuiyun.api.teacher.model.TeacherModel;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import com.java.zhuiyun.util.pageUtil.PageResult;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @InterfaceName CourseService
 * @Description TODO
 * @Author 杨友朋
 * @Date 2023/8/14 15:14
 **/
public interface TeacherService {
    /**
    * @Author 杨友朋
    * @Description TODO 添加教师信息
    * @Date 2023/8/15 11:14
    * @Return
    * @param
    */
    @Transactional
    CommonResult addTeacher(MultipartFile teacherImg, MultipartFile educationImg, TeacherModel teacher);

    /**
    * @Author 杨友朋
    * @Description TODO 全查教师
    * @Date 2023/8/15 11:14
    * @Return
    * @param
    */
    PageResult selectTeacher(TeacherModel teacherModel, PageRequest pageRequest);

    /**
     * @Author 杨友朋
     * @Description TODO 全查教师
     * @Date 2023/8/15 11:14
     * @Return
     * @param
     */
    List<Teacher> selectTeacher();

    /**
    * @Author 杨友朋
    * @Description TODO 查询学历菜单
    * @Date 2023/8/16 8:35
    * @Return
    * @param
    */
    List<SysDict> selectEducationDict();

    /**
     * @Author 杨友朋
     * @Description TODO 删除课程
     * @Date 2023/8/16 19:30
     * @Return
     * @param
     */
    CommonResult delTeacher(Integer id);

    /**
     * @Author 杨友朋
     * @Description TODO 修改教师
     * @Date 2023/8/16 20:09
     * @Return
     * @param
     */
    CommonResult upTeacher(MultipartFile teacherImg, MultipartFile educationImg, TeacherModel teacher);

    CommonResult selectTeacherById(Integer id);
}
